package com.max.back.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.max.back.demo.dao.DrugDao;
import com.max.back.demo.entity.Drug;
import com.max.back.demo.service.DrugSer;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 *  服务实现类
 */
@Service
public class DrugSerImpl extends ServiceImpl<DrugDao, Drug> implements DrugSer {
    @Override
    public boolean checkAndInsert(Drug drug) {
        return save(drug);
    }

    @Override
    public List<Drug> findall(String number, String type1, String type2) {
        return baseMapper.finddrug(number, type1, type2);
    }
}
